package cn.com.pajx.pajx_visitor_v3.base;

public abstract class BaseMvpActivity<B extends BasePresenter> extends BaseActivity {

    public B mPresenter;

    @Override
    protected void beforeSetContentView() {
        mPresenter = initPresenter();
        mPresenter.attach(this);
    }

    protected abstract B initPresenter();

    @Override
    protected void onDestroy() {
        //mPresenter.detach();
        //mPresenter.unSubscribe();
        super.onDestroy();
    }
}
